#ifndef _TIME_H_
#define _TIME_H_

#include <stdlib.h>
#include <time.h>

typedef unsigned long long Time_t;

#define elog_tm_interval 200000000
//^^ the interval in nanoseconds. 1/5th of a second.
#define elog_tm_second 5
//^^ what you divide elog_tm_time() by to get # of seconds.

void *elog_tm_runClock();
//Pre:
//Post:  This is an endless function that ticks.
//Run it as its own thread.

void elog_tm_reset();
//Pre:
//Post:  resets the time to 0.
// calls elog_tm_set(0)

void elog_tm_set(unsigned int tm);
//Pre:  
//Post:  Sets the time to tm

Time_t elog_tm_time();
//Pre:
//Post:  Returns the current time.

#endif //_TIME_H_
